package com.zmzncs.shop.module.shop.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.shop.module.shop.pojo.shopmanager.ShopManager;
import com.zmzncs.shop.module.shop.pojo.shopmanager.ShopManagerDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商户-管理员 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-25
 */
@Repository
@Mapper
public interface ShopManagerMapper extends BaseMapper<ShopManager> {

      /** 分页 */
      IPage<ShopManagerDTO> list(Page page);

      /** 详情 */
      ShopManagerDTO getById(Long id);

      /** 根据mobilePhone查询商户管理员信息 */
      List<ShopManagerDTO> getByMobilePhone(String telephone);

      /**商户管理员信息*/
      List<ShopManagerDTO> getManagerByShopId(Long shopId);
}
